package oop.encapsulation;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Book
 * Package: oop.encapsulation
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-20
 * Time: 11:03
 */

public class Book {

    private String bookName;
    private String author;

    private double price;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    //获取图书信息
    public String showInfo() {

        return "bookName: " + bookName + ",author:" + author + ",price:" + price;

    }
}
